<script type="text/javascript" src="/javascripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/javascripts/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript">
$(function() {
    $("#file").uploadify({
        'swf'           : '/javascripts/uploadify/uploadify.swf',
		'multi':false,
		'removeTimeout':3000,
        'uploader'      : '<%- path_to.fileupload()%>',
		'itemTemplate' : '<div id="${fileID}" class="uploadify-queue-item">\
                    <div class="cancel">\
                        <a href="javascript:$(\'#${instanceID}\').uploadify(\'cancel\', \'${fileID}\')">X</a>\
                    </div>\
                    <span class="fileName">${fileName} (${fileSize})</span><span class="data"></span>\
                </div>',
		'onUploadSuccess' : function(file, data, response) {
            alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
			$("#file").uploadify('disable', true);
        }
    });
});
</script>
<div class="page-header">
    <h1>fileupload</h1>
</div>
<div>
	
    <input name="file" id="file" type="file"/>
	<br/>
	<h1>aaaa</h1>


</div>